package com.unknowpupil.alibaba.cloud.oauth.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @Classname: LoginPwdDto
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/15 18:46
 * @Description:
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginPwdDto implements Serializable {
    private static final long serialVersionUID = 2269123654697257195L;
    /**用户帐号*/
    @ApiModelProperty(value = "用户名", name = "username", required = true)
    @NotNull(message = "用户名不能为空")
    private String username;
    /**用户密码*/
    @ApiModelProperty(value = "密码", name = "password", required = true)
    @NotNull(message = "密码不能为空")
    private String password;
    /**对象字符串输出*/
    @Override
    public String toString() {
        return "{username="
                + username
                + ", password=******}";
    }
}
